﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace ALE_Server.EC
{
    [Serializable]
    [DataContract]
    public class ECReport
    {
        private IList<ECReportGroup> m_Group = new List<ECReportGroup>();
        private string m_ReportName;

        [DataMember]
        public IList<ECReportGroup> Group
        {
            get
            {
                return m_Group;
            }
            set
            {
                m_Group = value;
            }
        }

        [DataMember]
        public string ReportName
        {
            get
            {
                return m_ReportName;
            }
            set
            {
                m_ReportName = value;
            }
        }

        public void AddGroup(ECReportGroup group)
        {
            m_Group.Add(group);
        }

        public void RemoveGroup(ECReportGroup group)
        {
            m_Group.Remove(group);
        }

        public override string ToString()
        {
            return XmlSerializeHelper.Serialize(this);
        }
    }
}
